
using System;
using System.Collections;

namespace FutureOpen.Core
{
	#region Sch

	/// <summary>
	/// Sch string for NHibernate mapped table 'sch'.
	/// </summary>
	public class Sch
		{
		#region Member Variables
		
		protected int _sch_id;
		protected string _sch_name;
		protected string _sch_info;
		protected int _sch_loc;

		#endregion

		#region Constructors

		public Sch() { }

		public Sch( string sch_name, string sch_info, int sch_loc )
		{
			this._sch_name = sch_name;
			this._sch_info = sch_info;
			this._sch_loc = sch_loc;
		}

		#endregion

		#region Public Properties

		public virtual int Sch_id
		{
			get {return _sch_id;}
			set {_sch_id = value;}
		}

		public virtual string Sch_name
		{
			get { return _sch_name; }
			set
			{
				if ( value != null && value.Length > 600)
					throw new ArgumentOutOfRangeException("Invalid value for Sch_name", value, value.ToString());
				_sch_name = value;
			}
		}

		public virtual string Sch_info
		{
			get { return _sch_info; }
			set { _sch_info = value; }
		}

		public virtual int Sch_loc
		{
			get { return _sch_loc; }
			set { _sch_loc = value; }
		}

        
		#endregion
		
        
	}

	#endregion
}
